package com.hongmeng.teamwork.convert;

import com.hongmeng.teamwork.entity.dto.TeamworkTaskDto;
import com.hongmeng.teamwork.entity.po.TeamworkTask;
import com.hongmeng.teamwork.entity.vo.TeamworkTaskVo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface TeamworkTaskConvert {

    TeamworkTaskConvert INSTANCE = Mappers.getMapper(TeamworkTaskConvert.class);

    TeamworkTask convertDtoToEntity(TeamworkTaskDto teamworkTaskDto);

    TeamworkTaskVo convertEntityToVo(TeamworkTask teamworkTask);
}
